Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle & Active power rework and defines #2632

Merged
merged 46 commits into from
May 27, 2024

Conversation

Thera-Pissed
Copy link
Contributor

@Thera-Pissed Thera-Pissed commented Jan 9, 2024

About The Pull Request

Implements new defines set in power.dm for nearly all machines using idle/active_power_usage
Kills auto_use_power() in favor of useStaticPower() procs
Standardizes power draws for most things using said defines
Decreases power used for lighting by half
Generally increases power used by machinery, especially those that are only active for short periods.
SSUs now consume power when decontaminating, ORMs and vending machines now take idle power.
image
If you have any feedback, feel free to share it! Most of these numbers are based on their original values, so definitely could be changed.

Why It's Good For The Game

This PR standardizes the draw of most machinery, while making it easier to change power use across the board.
Additionally, lighting takes less power, while actual machines have been tweaked to fill this gap.

Changelog

🆑
tweak: SSUs draw power to decontaminate
balance: lights no longer take 60% of a ships power, machines use more to account for this.
code: added standardized defines for power usage
/:cl:

@github-actions github-actions bot added the Code change Watch something violently break. label Jan 9, 2024
@Thera-Pissed Thera-Pissed marked this pull request as ready for review January 12, 2024 21:29
@Thera-Pissed Thera-Pissed changed the title Idle & Active power draw defines, mild power draw rebalance Idle & Active power rework and defines Jan 12, 2024
@Thera-Pissed
Copy link
Contributor Author

I forgot that machines can move between areas, whoops

@thgvr thgvr added the Test Merge Candidate You do it for free. label Jan 30, 2024
@github-actions github-actions bot added the Merge Conflict Use Git Hooks, you're welcome. label Mar 4, 2024
Copy link
Contributor

github-actions bot commented Mar 4, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@thgvr
Copy link
Member

thgvr commented Mar 12, 2024

Sorry, your pr got kind of buried over and over and I haven't heard anything of it in discord, I'll check this out this week.

@github-actions github-actions bot removed the Merge Conflict Use Git Hooks, you're welcome. label Apr 26, 2024
@Thera-Pissed
Copy link
Contributor Author

finally got around to fixing the merge conflict, should be good to go again

Copy link
Member

@FalloutFalcon FalloutFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks fine but with some minor balances to power consumption def need some test merges

code/game/machinery/_machinery.dm Outdated Show resolved Hide resolved
@FalloutFalcon FalloutFalcon added the Code Improvement Suddenly, it's easier to copy-paste things. label May 24, 2024
@FalloutFalcon FalloutFalcon enabled auto-merge May 27, 2024 03:48
@FalloutFalcon FalloutFalcon added this pull request to the merge queue May 27, 2024
Merged via the queue into shiptest-ss13:master with commit 1831332 May 27, 2024
14 checks passed
@Thera-Pissed Thera-Pissed deleted the powerdrawrebalance branch May 28, 2024 03:21
MysticalFaceLesS pushed a commit to CeladonSS13/Shiptest that referenced this pull request Jun 1, 2024
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
Implements new defines set in power.dm for nearly all machines using
idle/active_power_usage
Kills auto_use_power() in favor of useStaticPower() procs
Standardizes power draws for most things using said defines
Decreases power used for lighting by half
Generally increases power used by machinery, especially those that are
only active for short periods.
SSUs now consume power when decontaminating, ORMs and vending machines
now take idle power.

![image](https://github.com/shiptest-ss13/Shiptest/assets/90987989/071f8fa8-0639-4fb5-9c3c-5b4b4ad254e4)
If you have any feedback, feel free to share it! Most of these numbers
are based on their original values, so definitely could be changed.
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game
This PR standardizes the draw of most machinery, while making it easier
to change power use across the board.
Additionally, lighting takes less power, while actual machines have been
tweaked to fill this gap.

<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

## Changelog

:cl:
tweak: SSUs draw power to decontaminate
balance: lights no longer take 60% of a ships power, machines use more
to account for this.
code: added standardized defines for power usage
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

---------

Signed-off-by: HelmCrab <[email protected]>
Co-authored-by: FalloutFalcon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code change Watch something violently break. Code Improvement Suddenly, it's easier to copy-paste things. Test Merge Candidate You do it for free.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants